package com.smartleanx.module.hrm.eums.companySystem;

import com.smartleanx.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 状态枚举
 */
@Getter
@AllArgsConstructor
public enum CompanySystemStatusEnum implements IntArrayValuable {
    DEACTIVATE(0, "停用"),
    ENABLE(1, "启用");

    private Integer value;
    private String bizName;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CompanySystemStatusEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
